
#include <iostream>
#include "uv.h"

int main()
{
    char *version = (char*) uv_version_string();
    std::cout << "libuv version is " << version << std::endl;
    std::cout << std::hex << uv_version() << std::endl;
    uv_loop_t *loop = (uv_loop_t *)malloc(sizeof(uv_loop_t));
    uv_loop_init(loop);

    printf("Now quitting.\n");
    uv_run(loop, UV_RUN_DEFAULT);
    uv_loop_close(loop);
    free(loop);
    return 0;
}
